﻿using System;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;

namespace XExcel
{
    public class CsvHelper
    {
        private const string ALLOW_SEPARATORS = ",;|\t";
        internal static bool CheckSeparator(char separator)
        {
            if(ALLOW_SEPARATORS.Contains(separator))
            {
                return true;
            }
            throw new Exception($"CSV文件转换支持的分隔符包括 {ALLOW_SEPARATORS.Trim()} 和制表符。");
        }
    }
}